gtk4.git
11 years agoGtkExpander: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:57:13 +0000 (11:57 -0400)]
GtkExpander: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkEventBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:56:57 +0000 (11:56 -0400)]
GtkEventBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkToggleButton: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:37:00 +0000 (11:37 -0400)]
GtkToggleButton: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkMenuItem: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:35:32 +0000 (11:35 -0400)]
GtkMenuItem: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkFrame: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:35:00 +0000 (11:35 -0400)]
GtkFrame: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkEntryCompletion: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:34:28 +0000 (11:34 -0400)]
GtkEntryCompletion: Use G_PARAM_EXPLICIT_NOTIFY

Also, use the setter for text-column, internally.

11 years agoGtkEntryBuffer: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:33:52 +0000 (11:33 -0400)]
GtkEntryBuffer: Use G_PARAM_EXPLICIT_NOTIFY

Also avoid redundant notification for max-length.

11 years agoGtkEntry: Explicitly notify for populate-all
Matthias Clasen [Sun, 8 Jun 2014 15:33:29 +0000 (11:33 -0400)]
GtkEntry: Explicitly notify for populate-all

11 years agoGtkEntry: Don't forget to notify for the tooltip markup props
Matthias Clasen [Sun, 8 Jun 2014 15:33:03 +0000 (11:33 -0400)]
GtkEntry: Don't forget to notify for the tooltip markup props

11 years agoGtkColorChooserWidget: Explicitly notify for use-alpha
Matthias Clasen [Sun, 8 Jun 2014 15:31:54 +0000 (11:31 -0400)]
GtkColorChooserWidget: Explicitly notify for use-alpha

11 years agoGtkColorChooserDialog: Explicitly notify for use-alpha
Matthias Clasen [Sun, 8 Jun 2014 15:31:37 +0000 (11:31 -0400)]
GtkColorChooserDialog: Explicitly notify for use-alpha

11 years agoGtkColorChooser: Use G_PARAM_EXPLICIT_NOTIFY for use-alpha
Matthias Clasen [Sun, 8 Jun 2014 15:30:58 +0000 (11:30 -0400)]
GtkColorChooser: Use G_PARAM_EXPLICIT_NOTIFY for use-alpha

Implementors will need to adjust.

11 years agoGtkColorButton: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:30:37 +0000 (11:30 -0400)]
GtkColorButton: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCheckMenuItem: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:30:12 +0000 (11:30 -0400)]
GtkCheckMenuItem: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellView: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:29:58 +0000 (11:29 -0400)]
GtkCellView: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellView: Explicitly notify for orientation
Matthias Clasen [Sun, 8 Jun 2014 15:29:32 +0000 (11:29 -0400)]
GtkCellView: Explicitly notify for orientation

11 years agoGtkCellRendererToggle: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:28:28 +0000 (11:28 -0400)]
GtkCellRendererToggle: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:28:12 +0000 (11:28 -0400)]
GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellRendererSpin: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:27:41 +0000 (11:27 -0400)]
GtkCellRendererSpin: Use G_PARAM_EXPLICIT_NOTIFY

Also avoid redundant notification for ::digits.

11 years agoGtkCellRendererProgress: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:27:00 +0000 (11:27 -0400)]
GtkCellRendererProgress: Use G_PARAM_EXPLICIT_NOTIFY

Also add explicit notification and avoid redundant notification
for some properties.

11 years agoGtkCellRendererCombo: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:26:04 +0000 (11:26 -0400)]
GtkCellRendererCombo: Use G_PARAM_EXPLICIT_NOTIFY

And add explicit notification for some properties.

11 years agoGtkCellRenderer: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sun, 8 Jun 2014 15:25:40 +0000 (11:25 -0400)]
GtkCellRenderer: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellAreaBox: Explicitly notify orientation
Matthias Clasen [Sun, 8 Jun 2014 15:24:12 +0000 (11:24 -0400)]
GtkCellAreaBox: Explicitly notify orientation

11 years agoGtkWindow: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 20:40:57 +0000 (16:40 -0400)]
GtkWindow: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkWindow: Trivial cleanup
Matthias Clasen [Mon, 9 Jun 2014 13:45:14 +0000 (09:45 -0400)]
GtkWindow: Trivial cleanup

11 years agoGtkLabel: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 20:40:31 +0000 (16:40 -0400)]
GtkLabel: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkComboBox: Notify for has-frame and editing-canceled
Matthias Clasen [Sat, 7 Jun 2014 20:40:09 +0000 (16:40 -0400)]
GtkComboBox: Notify for has-frame and editing-canceled

11 years agoGtkCellEditable: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 20:39:02 +0000 (16:39 -0400)]
GtkCellEditable: Use G_PARAM_EXPLICIT_NOTIFY

This is an interface property, so all implementors will have
to adjust to this.

11 years agoGtkAppChooserButton: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 20:38:34 +0000 (16:38 -0400)]
GtkAppChooserButton: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkContainer: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:29:09 +0000 (14:29 -0400)]
GtkContainer: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkWidget: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:24:16 +0000 (14:24 -0400)]
GtkWidget: Use G_PARAM_EXPLICIT_NOTIFY

A few properties here are special, and can't benefit from it:
those which are just shorthands, like ::margin and ::expand,
and those that have explicit -set properties, like::hexpand
and ::vexpand.

11 years agoGtkOrientable use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:08:46 +0000 (14:08 -0400)]
GtkOrientable use G_PARAM_EXPLICIT_NOTIFY

This one is a little tricky, since we override this property
in many places, and you cannot add flags when overriding. So,
all places where this is overridden will have to make sure to
notify explicitly.

11 years agoGtkEntry: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:08:28 +0000 (14:08 -0400)]
GtkEntry: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'
Matthias Clasen [Sat, 7 Jun 2014 18:07:55 +0000 (14:07 -0400)]
GtkCellRendererText: Use G_PARAM_EXPLICIT_NOTIFY for 'alignment'

11 years agoGtkCellAreaBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:07:32 +0000 (14:07 -0400)]
GtkCellAreaBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCalendar: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:07:07 +0000 (14:07 -0400)]
GtkCalendar: Use G_PARAM_EXPLICIT_NOTIFY

And make sure we correctly notify for all properties.

11 years agoGtkAspectFrame: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:06:09 +0000 (14:06 -0400)]
GtkAspectFrame: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkApplicationWindow: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:05:51 +0000 (14:05 -0400)]
GtkApplicationWindow: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkApplicationWindow: Avoid a crash
Matthias Clasen [Sat, 7 Jun 2014 18:04:57 +0000 (14:04 -0400)]
GtkApplicationWindow: Avoid a crash

In several places, we were not correctly dealing with the
possibility of application not being set.

11 years agoGtkAppChooserWidget: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:04:16 +0000 (14:04 -0400)]
GtkAppChooserWidget: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkAppChooserButton: Fix a possible crash
Matthias Clasen [Sat, 7 Jun 2014 18:03:45 +0000 (14:03 -0400)]
GtkAppChooserButton: Fix a possible crash

We were not correctly dealing with content_type being NULL
in one place.

11 years agoGdkDevice: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 18:02:17 +0000 (14:02 -0400)]
GdkDevice: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkComboBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 15:47:53 +0000 (11:47 -0400)]
GtkComboBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellRendererSpinner: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 15:47:30 +0000 (11:47 -0400)]
GtkCellRendererSpinner: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkCellRendererAccel: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 15:46:22 +0000 (11:46 -0400)]
GtkCellRendererAccel: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkButtonBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 15:46:00 +0000 (11:46 -0400)]
GtkButtonBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 15:00:36 +0000 (11:00 -0400)]
GtkBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkBox: Convert to g_object_install_properties
Matthias Clasen [Sat, 7 Jun 2014 14:59:14 +0000 (10:59 -0400)]
GtkBox: Convert to g_object_install_properties

11 years agoGtkBox: Move overridden property ids to the end
Matthias Clasen [Sat, 7 Jun 2014 14:49:38 +0000 (10:49 -0400)]
GtkBox: Move overridden property ids to the end

This will make it easier to convert to g_object_install_properties
in the next commit.

11 years agoGtkButton: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 14:48:49 +0000 (10:48 -0400)]
GtkButton: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkButton: Convert to g_object_class_install_properties
Matthias Clasen [Sat, 7 Jun 2014 13:40:55 +0000 (09:40 -0400)]
GtkButton: Convert to g_object_class_install_properties

11 years agoGtkAccelLabel: use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 10:45:57 +0000 (06:45 -0400)]
GtkAccelLabel: use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkAccelLabel: Convert to g_object_class_install_properties
Matthias Clasen [Sat, 7 Jun 2014 10:45:00 +0000 (06:45 -0400)]
GtkAccelLabel: Convert to g_object_class_install_properties

11 years agoGtkAboutDialog: Use a setter for wrap-license
Matthias Clasen [Sat, 7 Jun 2014 15:45:14 +0000 (11:45 -0400)]
GtkAboutDialog: Use a setter for wrap-license

This avoids redundant notification.

11 years agoGtkAboutDialog: Fix a parameter check
Matthias Clasen [Sat, 7 Jun 2014 14:47:33 +0000 (10:47 -0400)]
GtkAboutDialog: Fix a parameter check

When we expanded the GtkLicense enumeration in 3.12, we forgot
to update the limit check in gtk_about_dialog_set_license_type.
Caught by testing property notification for enum properties.

11 years agoGtkAboutDialog: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 05:08:52 +0000 (01:08 -0400)]
GtkAboutDialog: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkAboutDialog: Convert to g_object_class_install_properties
Matthias Clasen [Sat, 7 Jun 2014 05:06:51 +0000 (01:06 -0400)]
GtkAboutDialog: Convert to g_object_class_install_properties

11 years agoGtkRevealer: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 04:51:21 +0000 (00:51 -0400)]
GtkRevealer: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkRevealer: Convert to g_object_class_install_properties
Matthias Clasen [Sat, 7 Jun 2014 04:50:23 +0000 (00:50 -0400)]
GtkRevealer: Convert to g_object_class_install_properties

11 years agoGtkFlowBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 04:42:34 +0000 (00:42 -0400)]
GtkFlowBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkFlowBox: Convert to g_object_class_install_properties
Matthias Clasen [Sat, 7 Jun 2014 04:39:00 +0000 (00:39 -0400)]
GtkFlowBox: Convert to g_object_class_install_properties

11 years agoGtkFlowBox: Move overridden prop ids to the end
Matthias Clasen [Sat, 7 Jun 2014 13:51:48 +0000 (09:51 -0400)]
GtkFlowBox: Move overridden prop ids to the end

This makes it easier to convert to g_object_class_install_properties
in the next commit.

11 years agoGtkFlowBox: Drop unused prop ids
Matthias Clasen [Sat, 7 Jun 2014 13:49:50 +0000 (09:49 -0400)]
GtkFlowBox: Drop unused prop ids

No h/valign properties here.

11 years agoGtkListBox: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 03:46:32 +0000 (23:46 -0400)]
GtkListBox: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoGtkStack: Avoid a few redundant notify emissions
Matthias Clasen [Sat, 7 Jun 2014 03:35:53 +0000 (23:35 -0400)]
GtkStack: Avoid a few redundant notify emissions

A few of the property setters were missing the
standard checks.

11 years agoGtkStack: Use G_PARAM_EXPLICIT_NOTIFY
Matthias Clasen [Sat, 7 Jun 2014 03:30:44 +0000 (23:30 -0400)]
GtkStack: Use G_PARAM_EXPLICIT_NOTIFY

11 years agoBump required GLib version
Matthias Clasen [Sat, 7 Jun 2014 03:39:56 +0000 (23:39 -0400)]
Bump required GLib version

For G_PARAM_EXPLICIT_NOTIFY.

11 years agoreftests: Fix random failures of reftest
Benjamin Otte [Mon, 9 Jun 2014 17:18:48 +0000 (19:18 +0200)]
reftests: Fix random failures of reftest

The reftest is testing "transparent" works as expected by drawing a
purple background once with purple and once with transparent and
expecting the same result. This works fine unless anti-aliasing happens
at rounded corners. The overdraw of the 2nd background changes the
antialiased pixels.

Fix this by explicitly setting the border radius to 0.

Also reindent the file to make it more readable.

11 years agoFix MSVC 2008 Projects
Chun-wei Fan [Mon, 9 Jun 2014 06:39:35 +0000 (14:39 +0800)]
Fix MSVC 2008 Projects

...Make up for a missed 
 required for a new line in commands...

11 years agoMSVC Builds: Update Introspection Build
Chun-wei Fan [Mon, 9 Jun 2014 04:44:46 +0000 (12:44 +0800)]
MSVC Builds: Update Introspection Build

The a11y headers are now listed with the main Makefile.am of GTK, and
GDK introduced deprecated headers, so we need to account for them for the
build of the introspection files.

11 years agoVisual Studio Builds: Update Headers "Installation"
Chun-wei Fan [Mon, 9 Jun 2014 04:42:56 +0000 (12:42 +0800)]
Visual Studio Builds: Update Headers "Installation"

11 years agoMSVC 2010+ Projects: Update "Installation" Process
Chun-wei Fan [Mon, 9 Jun 2014 03:48:54 +0000 (11:48 +0800)]
MSVC 2010+ Projects: Update "Installation" Process

Currently, due to the way that Visual Studio 2010+ projects are handled,
the "install" project does not re-build upon changes to the sources, as it
does not believe that its dependencies have changed, although the changed
sources are automatically recompiled.  This means that if a part or more
of the solution does not build, or if the sources need some other fixes
or enhancements, the up-to-date build is not copied automatically, which
can be misleading.

Improve on the situation by forcing the "install" project to trigger its
rebuild, so that the updated binaries can be copied.  This does trigger an
MSBuild warning, but having that warning is way better than not having an
up-to-date build, especially during testing and development.

11 years agoinspector: Fix build with quartz backend
Juan R. Garcia Blanco [Sat, 7 Jun 2014 08:50:27 +0000 (10:50 +0200)]
inspector: Fix build with quartz backend

Add -xobjective-c to libgtkinspector_la_CFLAGS to handle objc headers.

11 years agodocs: Sort style classes alphabetically
Matthias Clasen [Fri, 6 Jun 2014 21:50:53 +0000 (17:50 -0400)]
docs: Sort style classes alphabetically

Otherwise, it is pretty hard to keep track of what
classes are missing from the list. As a consequence,
several of the existing classes were missing. Add those
at the same time.

11 years agoGtkWindow: always input-shape csd windows
Matthias Clasen [Fri, 6 Jun 2014 22:31:27 +0000 (18:31 -0400)]
GtkWindow: always input-shape csd windows

Even if we don't have border windows, we need to set the input
shape so we ignore clicks in the shadow region.

11 years agoinspector: Make picking more robust
Matthias Clasen [Fri, 6 Jun 2014 17:35:40 +0000 (13:35 -0400)]
inspector: Make picking more robust

Apparently ClutterOffscreen returns NULL as a window.
While that is not cool, we shouldn't crash.

11 years agoGtkDialog: Be a little more careful about button placement
Matthias Clasen [Fri, 6 Jun 2014 17:00:06 +0000 (13:00 -0400)]
GtkDialog: Be a little more careful about button placement

We were applying response based heuristics, even if the button
is explicitly put in the headerbar. That broke button placement
in some epiphany dialogs, such as the Cookies one. Therefore,
restrict the heuristics to action widgets that are added through
gtk_widget_add_action_widget() or <child type="action">, where it
is not possible to specify placement explicitly.

11 years agoGtkDialog: avoid a crash
Matthias Clasen [Fri, 6 Jun 2014 16:19:24 +0000 (12:19 -0400)]
GtkDialog: avoid a crash

Just because use-header-bar is set, it is not safe to assume
every action widget is in the headerbar, so be careful when
setting child properties.

11 years agowayland: Explicitly handle classic mode for now
Florian Müllner [Thu, 5 Jun 2014 14:34:43 +0000 (16:34 +0200)]
wayland: Explicitly handle classic mode for now

There are plans to add session-dependent defaults to GSettings
(based on the newly standardized XDG_CURRENT_DESKTOP); until
then, the WM uses a different schema for its button-layout
setting in classic mode. So for the time being, do the same
and pick the alternative schema when XDG_CURRENT_DESKTOP
indicates that we are in a classic session.
(It's not pretty, but hopefully won't be with us for too long ...)

https://bugzilla.gnome.org/show_bug.cgi?id=731273

11 years agowayland: Set gtk-decoration-layout
Florian Müllner [Thu, 5 Jun 2014 13:30:16 +0000 (15:30 +0200)]
wayland: Set gtk-decoration-layout

Pick up the setting from the org.gnome.desktop.wm.preferences schema
if available. It is slightly more involved than other settings, as
the actual button names used in the schema differ from the ones we
use, so we need an additional translation step.

https://bugzilla.gnome.org/show_bug.cgi?id=731273

11 years agogtk/gtkkineticscrolling.c: Include fallback-c89.c
Chun-wei Fan [Fri, 6 Jun 2014 06:47:19 +0000 (14:47 +0800)]
gtk/gtkkineticscrolling.c: Include fallback-c89.c

... as round() is being used, which is for C99 and later.  fallback-c89.c
includes math.h as well.

11 years agoinspector: Avoid a crash
Matthias Clasen [Fri, 6 Jun 2014 01:08:56 +0000 (21:08 -0400)]
inspector: Avoid a crash

An unset action-name should not cause us to crash.

11 years agowidget-factory: Avoid a crash
Matthias Clasen [Thu, 5 Jun 2014 22:46:50 +0000 (18:46 -0400)]
widget-factory: Avoid a crash

We want to be able to show the dialogs more than once, so just
hide them on delete.

11 years agoRemove unintentional addition
Matthias Clasen [Thu, 5 Jun 2014 22:12:42 +0000 (18:12 -0400)]
Remove unintentional addition

Debugging leftovers.

11 years agowidget-factory: Show some 'standard' dialog types
Matthias Clasen [Thu, 5 Jun 2014 22:07:32 +0000 (18:07 -0400)]
widget-factory: Show some 'standard' dialog types

Add examples for the types of dialog that are mentioned
in the GNOME HIG: information dialogs, action dialogs and
preference dialogs.

11 years agoGtkDialog: Improve the buildable implementation
Matthias Clasen [Thu, 5 Jun 2014 22:04:52 +0000 (18:04 -0400)]
GtkDialog: Improve the buildable implementation

When combining action child type with <action-widgets> to assign
response ids, we were not properly updating buttons that ended up
getting added to the headerbar before they have a response id.
Fix this by reapplying the headerbar button setup after parsing
<action-widgets>, and make sure to also update the suggested-action
style class.

11 years agoTrivial string change
Matthias Clasen [Thu, 5 Jun 2014 18:49:13 +0000 (14:49 -0400)]
Trivial string change

Capitalize 'Expander' in the widget-factory UI.

11 years agocombobox: Fix reentrancy in gtk_combo_box_popdown()
Carlos Garnacho [Thu, 5 Jun 2014 19:09:46 +0000 (21:09 +0200)]
combobox: Fix reentrancy in gtk_combo_box_popdown()

If called when already popped down, warnings would be issued due
to priv->grab_pointer being unexpectedly NULL, this would happen
in regular operation when selecting items in appears-as-list mode.

So both add a NULL check for priv->grab_pointer, and bail out early
if the popup window is already hidden.

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Thu, 5 Jun 2014 15:27:15 +0000 (17:27 +0200)]
Updated POTFILES.in and POTFILES.skip

11 years agoscrolledwindow: Replace kinetic scrolling with GtkKineticScrolling
Lieven van der Heide [Mon, 26 May 2014 16:19:24 +0000 (18:19 +0200)]
scrolledwindow: Replace kinetic scrolling with GtkKineticScrolling

Two GtkKineticScrolling helpers are used, one per axis direction.

https://bugzilla.gnome.org/show_bug.cgi?id=729608

11 years agogtk: Add kinetic scrolling helper
Lieven van der Heide [Mon, 26 May 2014 16:13:29 +0000 (18:13 +0200)]
gtk: Add kinetic scrolling helper

GtkKineticScrolling implements the actual physics laws for friction
and springs. When created, position/velocity/boundaries/constants are
given, so at every gtk_kinetic_scrolling_tick() it returns the current
position, and whether the system is in rest.

https://bugzilla.gnome.org/show_bug.cgi?id=729608

11 years agoflowbox: Use gestures for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:45:21 +0000 (15:45 +0200)]
flowbox: Use gestures for event management

A multipress gesture takes care of item selection/activation, and
a drag gesture is used to manage events when rubberbanding selection
is performed.

11 years agolistbox: Use multipress gesture for row selection/activation
Carlos Garnacho [Thu, 5 Jun 2014 13:40:02 +0000 (15:40 +0200)]
listbox: Use multipress gesture for row selection/activation

This gesture replaces the button_press/release_event handlers.

11 years agolabel: Use gestures for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:36:15 +0000 (15:36 +0200)]
label: Use gestures for event management

A multipress gesture takes care of link handling, and char/word/all
selection mode on selectable labels. A drag gesture is used for both
text selection and DnD checks on selectable labels.

11 years agorange: Use GtkGesture for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:29:14 +0000 (15:29 +0200)]
range: Use GtkGesture for event management

A multipress gesture takes care of clicks, and where those happened.
If the click is meant to move the slider while pressed, the drag gesture
takes over, dragging the slider while active.

11 years agoexpander: Use multipress gesture for event management
Carlos Garnacho [Thu, 5 Jun 2014 13:27:25 +0000 (15:27 +0200)]
expander: Use multipress gesture for event management

This actually acts regardless of the value n_press, alternatively
expanding and collapsing the GtkExpander.

11 years agowidget: reset all controllers when the widget becomes insensitive
Carlos Garnacho [Thu, 5 Jun 2014 13:31:35 +0000 (15:31 +0200)]
widget: reset all controllers when the widget becomes insensitive

Widgets becoming insensitive won't receive further events, but there
could be chances the controllers don't get properly notified and reset
in those situations.

11 years agoinspector: Make GMenu content show up
Matthias Clasen [Thu, 5 Jun 2014 13:29:18 +0000 (09:29 -0400)]
inspector: Make GMenu content show up

My problem was that all the content is usually hidden away
in sections, so without recursion, nothing shows up. So,
implement the recursion then.

11 years agoForgotten file
Matthias Clasen [Thu, 5 Jun 2014 12:35:07 +0000 (08:35 -0400)]
Forgotten file

11 years agoinspector: show GMenus
Matthias Clasen [Thu, 5 Jun 2014 12:31:06 +0000 (08:31 -0400)]
inspector: show GMenus

This does not quite work yet, and I have no idea why.